import cv2
import numpy as np

if __name__ == '__main__':
    # 1. 图片输入
    path = 'work2.jpg'
    image_np = cv2.imread(path)

    no_noise_image = cv2.medianBlur(image_np, 11)
    cv2.imshow('no_noise_image', no_noise_image)

    cv2.imwrite('zuoye2.jpg', no_noise_image)
    cv2.waitKey(0)

